package cn.dubnation.org.domain;

import cn.dubnation.base.domain.BaseDomain;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhu
 * @since 2023-12-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Component
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    @NotNull(message = "店铺名称不能为空")
    private String name;
    @NotNull(message = "店铺座机不能为空")
    private String tel;
    private Date registerTime;
    /**
     * 1=待审核 2=审核通过待激活 3=激活成功 4=驳回
     */
    private Integer state;
    @NotNull(message = "店铺地址不能为空")
    private String address;
//    @NotNull(message = "店铺logo不能为空")
    private String logo;
    private Double lng;
    private Double lat;
    private Integer rejectedNum;
    private Long departmentId;
    /**
     * 店铺管理员
     */
    @NotNull(message = "店铺管理员不能为空")
    private Employee admin;
}
